New Results for Adaptive and Approximate Counting of Inversions

نویسنده

  • Saladi Rahul
چکیده

Counting inversions is a classic and important problem in databases. The number of inversions, K∗, in a list L = (L(1), L(2), . . . , L(n)) is defined as the number of pairs i < j with L(i) > L(j). In this paper, new results for this problem are presented: 1. In the I/O-model, an adaptive algorithm is presented for calculating K∗. The algorithm performs O( B + N B logM/B( K∗ NB )) I/Os. When K∗ = O(NM), then the algorithm takes only O( B ) I/Os. This algorithm can be modified to match the state of the art for the comparison based model and the RAM model. 2. In the RAM model, a linear-time algorithm is presented to obtain a tight estimate of K∗; specifically a value which lies with high probability in the range [(1 − logN N1/4 )K∗, (1 + logN N1/4 )K∗]. The state of the art linear-time algorithm works for the special case where L is a permutation, i.e., each L(i) is a distinct integer in the range [1, N ]. In this paper, we handle a general case where each L(i) is a real number.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Periodic Oscillations in the Analysis of Algorithms and Their Cancellations

A large number of results in analysis of algorithms contain fluctuations. A typical result might read “The expected number of . . . for large n behaves like log2 n + constant + delta(log2 n), where delta(x) is a periodic function of period one and mean zero.” Examples include various trie parameters, approximate counting, probabilistic counting, radix exchange sort, leader election, skip lists,...

متن کامل

Detecting and counting vehicles using adaptive background subtraction and morphological operators in real time systems

vehicle detection and classification of vehicles play an important role in decision making for the purpose of traffic control and management.this paper presents novel approach of automating detecting and counting vehicles for traffic monitoring through the usage of background subtraction and morphological operators. We present adaptive background subtraction that is compatible with weather and ...

متن کامل

Adaptive Quaternion Attitude Control of Aerodynamic Flight Control Vehicles

Conventional quaternion based methods have been extensively employed for spacecraft attitude control where the aerodynamic forces can be neglected. In the presence of aerodynamic forces, the flight attitude control is more complicated due to aerodynamic moments and inertia uncertainties. In this paper, a robust nero-adaptive quat...

متن کامل

Adaptive fuzzy pole placement for stabilization of non-linear systems

A new approach for pole placement of nonlinear systems using state feedback and fuzzy system is proposed. We use a new online fuzzy training method to identify and to obtain a fuzzy model for the unknown nonlinear system using only the system input and output. Then, we linearized this identified model at each sampling time to have an approximate linear time varying system. In order to stabilize...

متن کامل

Adaptive Approximate Record Matching

Typographical data entry errors and incomplete documents, produce imperfect records in real world databases. These errors generate distinct records which belong to the same entity. The aim of Approximate Record Matching is to find multiple records which belong to an entity. In this paper, an algorithm for Approximate Record Matching is proposed that can be adapted automatically with input error...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1612.08097  شماره 

صفحات  -

تاریخ انتشار 2016